package com.jhgk.jhcee.system.domain.model;

import com.jhgk.jhcee.data.auth.entity.SysResourceInfo;
import lombok.Data;

import java.util.Comparator;

/**
 * @Description:
 * @Author: lemon_xzp
 * @Date: 2021/9/23 8:04
 */
@Data
public class SysResourceInfoModelComparator implements Comparator<SysResourceInfo> {

    @Override
    public int compare(SysResourceInfo o1, SysResourceInfo o2) {
        return o1.getSort() - o2.getSort();
    }
}
